Thực đơn
Google_Closure_Tools Closure CompilerClosure Compiler là một JavaScript tối ưu hoá mã JavaScript khiến nó được tải về và thực thi nhanh hơn.
Giải pháp được đưa ra đó là xóa đi khoảng trắng thừa, chú thích và rút gọn tên biến:
{}
) vào những câu lệnh mà nhà phát triển thường bỏ qua.return
Hiện có một lỗi khi sử dụng mã JS đã tối ưu, đưa vào trong FBML (API của ứng dụng Facebook). Cụ thể lỗi như sau:
Cách sửa lỗi duy nhất là nhà phát triển tự tay chuyển lại 2E3 thành 2000.
Thực đơn
Google_Closure_Tools Closure CompilerLiên quan
Google Google Chrome Google Maps Google Dịch Google Play Google Workspace Google Cloud Platform Google Nexus Google Sheets Google WalletTài liệu tham khảo
WikiPedia: Google_Closure_Tools http://closure-compiler.appspot.com/home http://code.google.com/closure/ http://code.google.com/closure/compiler/ http://code.google.com/closure/library/docs/gettin... http://code.google.com/closure/templates/ http://code.google.com/closure/templates/docs/hell... http://code.google.com/closure/templates/docs/hell...